## The main source files.
SOURCES += chpwd
+SOURCES += agpl.py
SOURCES += backend.py
SOURCES += cgi.py
SOURCES += cmdutil.py
SOURCES += crypto.py
SOURCES += dbmaint.py
SOURCES += format.py
+SOURCES += hash.py
SOURCES += httpauth.py
SOURCES += operation.py
SOURCES += output.py
TARGETS += auto.py auto-$(VERSION).py
-auto-$(VERSION).py: Makefile get-version $(SOURCES)
+auto-$(VERSION).py: Makefile get-version $(SOURCES) $(wildcard RELEASE)
{ echo "### -*-python-*-"; \
echo "PACKAGE = '$(PACKAGE)'"; \
echo "VERSION = '$(VERSION)'"; \
echo "HOME = '$$(pwd)'"; \
} >$@.new
mv $@.new $@
- rm -f auto.py.new && ln -s $@ auto.py.new && mv auto.py.new auto.py
auto.py: auto-$(VERSION).py
+ rm -f auto.py.new && ln -s $^ auto.py.new && mv auto.py.new auto.py
for i in auto-*.py; do \
case $$i in auto-$(VERSION).py) ;; *) rm -f $$i ;; esac; \
done
clean::; rm -f $(CLEANFILES)
.PHONY: clean
+###--------------------------------------------------------------------------
+### Distributions.
+
+distdir = $(PACKAGE)-$(VERSION)
+
+DISTFILES = $(SOURCES)
+DISTFILES += AGPLv3
+DISTFILES += Makefile get-version
+DISTFILES += userv.rc
+
+dist:
+ rm -rf $(distdir)
+ mkdir $(distdir)
+ cp $(DISTFILES) $(distdir)
+ echo $(VERSION) >$(distdir)/RELEASE
+ tar cvfz $(distdir).tar.gz $(distdir)
+ rm -rf $(distdir)
+.PHONY: dist
+
###----- That's all, folks --------------------------------------------------