- rm -rf doc
-
-install: all
- umask 022 && \
- mkdir -p $(BINDIR) $(VARDIR) && \
- $(install_sh) -s -m 755 $(BINARIES) $(BINDIR) && \
- mkdir -p $(CONFDIR) && \
- $(install_sh) -m 644 bash_completion $(sample_conf) $(CONFDIR)
- mkdir -p $(FONTDIR) && \
- $(install_sh) -m 644 $(FONTS) $(FONTDIR) && \
- mkdir -p $(PICDIR) && \
- $(install_sh) -m 644 $(PICS) $(PICDIR) && \
- mkdir -p $(MANDIR) && \
- $(install_sh) -m 644 $(MANS) $(MANDIR)
-
-
-@PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.bz2: all $(gengetopts_c) $(tarball)
- dir=@PACKAGE_TARNAME@-@PACKAGE_VERSION@ &&\
- mkdir -p $${dir} && \
- cp -a $(tarball) $${dir} && \
- find $${dir} -name "CVS" | xargs rm -rf && \
- tar cpjf $@ $${dir} && \
- rm -rf $${dir} && \
- ls -l $@
-
-ChangeLog:
- para_util changelog > $@
-web/%.in.html: %
- grutatxt -nb < $< > $@
-tags:
- rm -rf web/sync/HTML && gtags && htags -nF && mv HTML web/sync
-web/sync/doc:
- para_util doc
-web/header2.html: web/header.html
- sed -e 's|href="|href="\.\.\/\.\./|g' \
- -e 's|SRC="|SRC="\.\.\/\.\./|g' $< > $@
-doxygen: web/header2.html
- mkdir -p web/sync/doxygen
- doxygen
-web/sync/doxygen:
- mkdir -p $@
-web/sync/doxygen/index.html:
-web/sync/%.html: web/%.in.html web/header.html web/footer.html web/sync
- cat web/header.html $< web/footer.html > $@
-web/sync/%.png: pics/web/%.png web/sync
- cp $< $@
-web/sync/%.ico: pics/web/%.ico web/sync
- cp $< $@
-web/sync/demo-script: scripts/demo-script web/sync
- cp $< $@
-web/sync/para.css: web/para.css web/sync
- cp $< $@
-web/sync/versions/paraslash-git.tar.bz2: paraslash-git.tar.bz2 web/sync
- cp -a versions web/sync && cp $< $@
-web/sync/overview.pdf: skencil/overview.pdf web/sync
- cp $< $@
-web/sync/%: %
- cp $< $@
-web/sync/%: pics/screenshots/%
- cp $< $@
-skencil/%.ps: skencil/%.sk
+ rm -f *_command_list.* *.man man/man1/* web_sync
+
+
+install: all man
+ mkdir -p $(BINDIR) $(MANDIR)
+ $(install_sh) -s -m 755 $(BINARIES) $(BINDIR)
+ $(install_sh) -m 644 $(man_pages) $(MANDIR)
+ mkdir -p $(VARDIR) >/dev/null 2>&1 || true # not fatal, so don't complain
+
+@PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.bz2: $(tarball_add) $(man_pages)
+ rm -rf $(tarball_pfx).tar.bz2 $(tarball_pfx)
+ git-archive --format=tar --prefix=$(tarball_pfx)/ HEAD \
+ | tar --delete $(tarball_delete) > $(tarball_pfx).tar
+ mkdir $(tarball_pfx)
+ cp -r $(tarball_add) $(tarball_pfx)
+ mkdir -p $(tarball_pfx)/man/man1
+ cp -r $(man_pages) $(tarball_pfx)/man/man1
+ tar rf $(tarball_pfx).tar $(tarball_pfx)/*
+ rm -rf $(tarball_pfx)
+ bzip2 -9 $(tarball_pfx).tar
+ rm -f $(tarball_pfx).tar
+ ls -l $(tarball_pfx).tar.bz2
+%.ps: %.sk