mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 08:53:11 +00:00
36 lines
1.3 KiB
Makefile
36 lines
1.3 KiB
Makefile
ISUBDIRS = icons
|
|
SUBDIRS = src $(ISUBDIRS)
|
|
pkgdatadir=$(datadir)/@DATADIR@
|
|
|
|
dist_noinst_DATA = @MANUAL_FILES@ copyright changelog wesnoth.dsp wesnoth.dsw \
|
|
@UTIL_FILES@
|
|
nobase_dist_pkgdata_DATA = @DATA_FILES@ @FONT_FILES@ @IMAGE_FILES@ \
|
|
@MUSIC_FILES@ @SOUND_FILES@
|
|
dist_man6_MANS = doc/man/wesnoth.6 doc/man/wesnothd.6 doc/man/wesnoth_editor.6
|
|
|
|
uninstall-hook:
|
|
if test -d $(pkgdatadir) ; then rm -r $(pkgdatadir) ; fi
|
|
if test -d $(mandir)/man6 ; then echo `rmdir $(mandir)/man6` ; fi
|
|
if test -d $(mandir); then echo `rmdir $(mandir)` ; fi
|
|
if test -d $(bindir) ; then echo `rmdir $(bindir)` ; fi
|
|
if test -d $(datadir) ; then echo `rmdir $(datadir)` ; fi
|
|
if test -d $(prefix) ; then echo `rmdir $(prefix)` ; fi
|
|
|
|
BINARY_STAGING=/tmp/$(PACKAGE)-$(VERSION)-staging
|
|
BINARY_DIST=/tmp/$(PACKAGE)-binary-$(VERSION).tar.gz
|
|
DATA_DIST=/tmp/$(PACKAGE)-data-$(VERSION).tar.gz
|
|
|
|
binary-dist:
|
|
@rm -rf $(BINARY_STAGING) $(BINARY_DIST)
|
|
@make install-exec DESTDIR=$(BINARY_STAGING)
|
|
@cd $(BINARY_STAGING) ; tar cf - * | gzip -c >$(BINARY_DIST)
|
|
@rm -rf $(BINARY_STAGING)
|
|
@echo "Precompiled binary tarball is in $(BINARY_DIST)"
|
|
|
|
data-dist:
|
|
@rm -rf $(BINARY_STAGING) $(DATA_DIST)
|
|
@make install-data DESTDIR=$(BINARY_STAGING)
|
|
@cd $(BINARY_STAGING) ; tar cf - * | gzip -c >$(DATA_DIST)
|
|
@rm -rf $(BINARY_STAGING)
|
|
@echo "Precompiled data tarball is in $(DATA_DIST)"
|