osx_write udp_recv amp_filter compress_filter file_write \
mp3dec_filter prebuffer_filter
ggo_generated := $(addsuffix .ggo, $(addprefix $(ggo_dir)/,$(m4_ggos)))
-cmdline_generated := $(addprefix $(cmdline_dir)/,$(addsuffix .cmdline.c, $(all_ggos)) \
- $(addsuffix .cmdline.h, $(all_ggos)))
autocrap := config.h.in configure
tarball_pfx := @PACKAGE_TARNAME@-$(PACKAGE_VERSION)
tarball_delete := $(addprefix $(tarball_pfx)/,\
web versions .changelog_before_cvs .changelog_cvs .gitignore\
- $(ggo_dir) skencil)
+ skencil)
tarball := @PACKAGE_TARNAME@-$(PACKAGE_VERSION).tar.bz2
# To put more focus on warnings, be less verbose as default
clean2: clean
@[ -z "$(Q)" ] || echo 'CLEAN2'
- $(Q) rm -rf man $(object_dir)
- $(Q) rm -f *_command_list.*
+ $(Q) rm -rf man $(object_dir) $(cmdline_dir)
+ $(Q) rm -f *_command_list.* $(ggo_generated)
distclean: clean2 test-clean
@[ -z "$(Q)" ] || echo 'DISTCLEAN'
$(Q) rm -f GPATH GRTAGS GSYMS GTAGS
maintainer-clean: distclean
- rm -f $(ggo_generated) *.tar.bz2 \
+ rm -f *.tar.bz2 \
config.h configure \
config.h.in skencil/*.pdf skencil/*.ps
- rm -rf web_sync $(cmdline_dir)
+ rm -rf web_sync
install: all man
mkdir -p $(BINDIR) $(MANDIR)
$(install_sh) -m 644 $(man_pages) $(MANDIR)
mkdir -p $(VARDIR) >/dev/null 2>&1 || true # not fatal, so don't complain
-$(tarball): $(cmdline_generated)
+$(tarball):
rm -rf $(tarball_pfx).tar.bz2 $(tarball_pfx)
git archive --format=tar --prefix=$(tarball_pfx)/ HEAD \
| tar --delete $(tarball_delete) > $(tarball_pfx).tar
- mkdir -p $(tarball_pfx)/$(cmdline_dir)
+ mkdir -p $(tarball_pfx)
./GIT-VERSION-GEN > $(tarball_pfx)/VERSION
cp -r $(autocrap) $(tarball_pfx)
- cp -r $(cmdline_generated) $(tarball_pfx)/$(cmdline_dir)
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
+ rm -rf $(tarball_pfx)
%.ps: %.sk
sk2ps $< > $@
%.pdf: %.ps