vardir := /var/paraslash
mandir := $(datarootdir)/man/man1
MKDIR_P := mkdir -p
+RM := rm -f
ifeq ("$(origin O)", "command line")
build_dir := $(O)
$(CC) $^ -o $@ $(LDFLAGS)
mostlyclean:
- $(call SAY, MOSTLYCLEAN)
- rm -f para_*
- rm -rf $(object_dir)
+ $(RM) para_* *.tar.bz2 *.tar.xz
clean: mostlyclean
- $(call SAY, CLEAN)
- rm -rf $(build_dir)
-distclean: clean
- $(call SAY, DISTCLEAN)
- rm -f Makefile autoscan.log config.status config.log
- rm -f config.h configure config.h.in
-maintainer-clean: distclean test-clean
- $(call SAY, MAINTAINER-CLEAN)
- rm -f *.tar.bz2 *.tar.xz
- rm -f GPATH GRTAGS GSYMS GTAGS
+ $(RM) -r $(object_dir)
+distclean: clean test-clean
+ $(RM) -r $(build_dir)
+maintainer-clean: distclean
+ $(RM) Makefile config.status config.log config.h configure config.h.in
INSTALL ?= install
INSTALL_PROGRAM ?= $(INSTALL)
$(tarball) dist tarball:
$(call SAY, DIST)
- rm -rf $(tarball) $(tarball_pfx)
+ $(RM) -r $(tarball) $(tarball_pfx)
git archive --format=tar --prefix=$(tarball_pfx)/ HEAD \
| tar --delete $(tarball_delete) > $(tarball_pfx).tar
$(MKDIR_P) $(tarball_pfx)
xz -9 $(tarball_pfx).tar
ls -l $(tarball)
ln -sf $(tarball) paraslash-git.tar.xz
- rm -rf $(tarball_pfx)
+ $(RM) -f $(tarball_pfx)