File: Makefile.am

package info (click to toggle)
lgeneral 1.2.3+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,312 kB
  • ctags: 3,311
  • sloc: ansic: 29,061; sh: 3,574; makefile: 375; sed: 93
file content (49 lines) | stat: -rw-r--r-- 1,603 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
SUBDIRS = intl util lgc-pg lged src tools po

EXTRA_DIST = AUTHORS COPYING ChangeLog README.lgeneral \
README.lgc-pg README.redit TODO PanzerGeneral-Guru.txt \
lgeneral48.png lgeneral32.png lgeneral16.png lgeneral.desktop.in \
lgeneral-redit

desktopdir = $(datadir)/applications
desktop_DATA = lgeneral.desktop
icondir = $(datadir)/icons
icon_DATA = lgeneral48.png

AUTOMAKE_OPTIONS = foreign

# We can't use static desktop file because of icon location. Is this 
# the right way to handle it? At least it works... as long as $datadir
# does not contain plus signs. :-)
lgeneral.desktop:
	@sed -e "s+Icon=+Icon=$(datadir)/icons/lgeneral48.png+" \
	< lgeneral.desktop.in > lgeneral.desktop

package-translations:
	test x != "x$(LINGUAS)" || { echo "LINGUAS not set" ; exit 1 ; }
	cwd=`pwd` ; cd $(top_srcdir) ; \
	for l in $(LINGUAS) ; do \
	  tar -cjf $$cwd/$(PACKAGE).$${l}.`date '+%Y-%m-%d'`.tar.bz2 po/*/$$l.po ; \
	done
	
install-data-hook:
	@echo 
	@echo "================================================================"
	@echo 
	@echo "Congratulations, LGeneral has been successfully installed to"
	@echo 
	@echo "    "$(inst_dir)
	@echo 
	@echo "Now mount your Panzer General CD (e.g., to /mnt/cdrom) and run"
	@echo 
	@echo "    lgc-pg -s /mnt/cdrom/DAT"
	@echo 
	@echo "Alternatively you can download the PG data package from "
	@echo "http://lgames.sf.net, extract it (e.g., to /tmp/pg-data) and run"
	@echo 
	@echo "    lgc-pg -s /tmp/pg-data"
	@echo 
	@echo "For more information see README.lgc-pg."
	@echo 
	@echo "================================================================"
	@echo