2013-12-12 10:22:25 +00:00
|
|
|
ifdef PACKAGE_NAME
|
|
|
|
|
2013-12-10 14:54:34 +00:00
|
|
|
dist_name = $(PACKAGE_NAME)-$(PACKAGE_VERSION)
|
|
|
|
|
|
|
|
dist_files :=
|
|
|
|
|
|
|
|
dist: $(dist_name).tar.bz2
|
|
|
|
|
|
|
|
$(dist_name).tar.bz2: $(dist_files)
|
2014-01-10 21:31:38 +00:00
|
|
|
$(suppress) tar cvfj $@ $(dist_files) --transform 's,^,$(dist_name)/,'
|
2013-12-10 14:54:34 +00:00
|
|
|
|
|
|
|
clean_files += $(dist_name).tar.bz2
|
2013-12-12 10:22:25 +00:00
|
|
|
|
2014-02-01 10:31:25 +00:00
|
|
|
print-top-help += echo " dist: Generate a source distribution";
|
|
|
|
|
2013-12-12 10:22:25 +00:00
|
|
|
endif
|