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
|
SUBDIRS = src
AUTOMAKE_OPTIONS = foreign
RPMBUILD = rpmbuild
rpm: dist
$(RPMBUILD) -ta $(distdir).tar.gz
desktopdir = $(datadir)/applications
desktop_DATA = barrage.desktop
icondir = $(datadir)/icons
icon_DATA = barrage48.gif
EXTRA_DIST = BUGS README COPYING AUTHORS ChangeLog INSTALL NEWS TODO \
$(PACKAGE).spec $(PACKAGE).spec.in barrage.desktop.in \
barrage48.gif
# 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. :-)
barrage.desktop:
@sed -e "s+Icon=+Icon=$(datadir)/icons/barrage48.gif+" \
< barrage.desktop.in > barrage.desktop
|