forked from Miroirs/x49gp
refactor++
This commit is contained in:
parent
cb7c9f6e37
commit
1a1993d845
1 changed files with 6 additions and 6 deletions
12
Makefile
12
Makefile
|
@ -209,12 +209,6 @@ else
|
||||||
/sbin/mkdosfs -v -C -S 512 -f 2 -F 16 -r 512 -R 2 -n "$(TARGET)" $@ 65536
|
/sbin/mkdosfs -v -C -S 512 -f 2 -F 16 -r 512 -R 2 -n "$(TARGET)" $@ 65536
|
||||||
endif
|
endif
|
||||||
|
|
||||||
dist/$(TARGET).desktop: dist/$(TARGET).desktop.in
|
|
||||||
perl -p -e "s!TARGET!$(TARGET)!" < dist/$(TARGET).desktop.in >$@
|
|
||||||
|
|
||||||
dist/$(TARGET).man: dist/$(TARGET).man.in
|
|
||||||
perl -p -e "s!TARGET_ALLCAPS!$(TARGET_ALLCAPS)!;" -e "s!TARGET!$(TARGET)!" < dist/$(TARGET).man.in >$@
|
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
INSTALL_PREFIX = /usr/local
|
INSTALL_PREFIX = /usr/local
|
||||||
INSTALL_BINARY_DIR = "$(INSTALL_PREFIX)"/bin
|
INSTALL_BINARY_DIR = "$(INSTALL_PREFIX)"/bin
|
||||||
|
@ -223,6 +217,12 @@ INSTALL_DOC_DIR = "$(INSTALL_PREFIX)"/doc/$(TARGET)
|
||||||
INSTALL_MENU_DIR = "$(INSTALL_PREFIX)"/share/applications
|
INSTALL_MENU_DIR = "$(INSTALL_PREFIX)"/share/applications
|
||||||
INSTALL_MAN_DIR = "$(INSTALL_PREFIX)/share/man/man1"
|
INSTALL_MAN_DIR = "$(INSTALL_PREFIX)/share/man/man1"
|
||||||
|
|
||||||
|
dist/$(TARGET).desktop: dist/$(TARGET).desktop.in
|
||||||
|
perl -p -e "s!TARGET!$(TARGET)!" < dist/$(TARGET).desktop.in >$@
|
||||||
|
|
||||||
|
dist/$(TARGET).man: dist/$(TARGET).man.in
|
||||||
|
perl -p -e "s!TARGET_ALLCAPS!$(TARGET_ALLCAPS)!;" -e "s!TARGET!$(TARGET)!" < dist/$(TARGET).man.in >$@
|
||||||
|
|
||||||
install: all dist/$(TARGET).desktop dist/$(TARGET).man
|
install: all dist/$(TARGET).desktop dist/$(TARGET).man
|
||||||
install -D -m 755 dist/$(TARGET) "$(DESTDIR)$(INSTALL_BINARY_DIR)/$(TARGET)"
|
install -D -m 755 dist/$(TARGET) "$(DESTDIR)$(INSTALL_BINARY_DIR)/$(TARGET)"
|
||||||
mkdir -p "$(DESTDIR)$(INSTALL_DATA_DIR)/"
|
mkdir -p "$(DESTDIR)$(INSTALL_DATA_DIR)/"
|
||||||
|
|
Loading…
Reference in a new issue