forked from rickyrockrat/parcellite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.simple
64 lines (47 loc) · 1.74 KB
/
Makefile.simple
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright (C) 2010-2022 Doug Springer <gpib@rickyrockrat.net>
#
# This file is part of Parcellite.
#
# Parcellite is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# Parcellite is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
prefix?=/usr
DESTDIR?=
sysconfdir = $(DESTDIR)/etc
INSTDIR:=$(DESTDIR)$(prefix)
GETTEXT_PACKAGE:=parcellite
DIRS:= data po src doc
all: src/$(GETTEXT_PACKAGE)
BUILDCONFIG=yes
PRFX=.
export PRFX
include simple.common
GIT_PVERSION:=$(shell git log -n1 --pretty=format:%h)
VERSION?=git-$(GIT_PVERSION)
makeopts=-f Makefile.simple GETTEXT_PACKAGE=$(GETTEXT_PACKAGE) BUILDCONFIG=''
config.h:
@echo "#define ENABLE_NLS 1" > $@
@echo '#define GETTEXT_PACKAGE "parcellite"' >> $@
@echo '#define VERSION "$(VERSION)"' >> $@
build.po build.data: config.h
$(MAKE) -C $$(echo $@|sed 's!build.!!') $(makeopts)
src/$(GETTEXT_PACKAGE): check_dep build.po build.data
$(MAKE) -C src $(makeopts) $(GETTEXT_PACKAGE)
install: src/$(GETTEXT_PACKAGE) build.po build.data
for d in $(DIRS); do \
$(MAKE) -C $$d $(makeopts) sysconfdir=$(sysconfdir) INSTDIR=$(INSTDIR) GETTEXT_PACKAGE=$(GETTEXT_PACKAGE) $@; \
done
clean:
-for d in $(DIRS); do \
$(MAKE) -C $$d $(makeopts) $@ ; \
done
-rm config.h build.po build.data src/config.simple.h