-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.linux
130 lines (107 loc) · 3.02 KB
/
Makefile.linux
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
## EPIwm
# Copyright (C) 1999 Julien Mulot, Thomas Poindessous, Stephane Rault
#
# This program 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 2 of the License, or
# (at your option) any later version.
#
# This program 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, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#
# Makefile
#
#
# Started on Wed Feb 17 00:31:56 1999 Julien Mulot
# Last update Wed Jan 26 03:36:17 2000 Julien Mulot
#
#####################
# Macro Definitions #
#####################
PREFIX =
BIN_PREFIX = $(PREFIX)/usr/X11R6/
CONF_PREFIX = $(PREFIX)/etc/X11
NAME = epiwm
NAME2 = epiconf
NAME3 = logoepiwm
MAKE = make -f Makefile.linux
SHELL = /bin/sh
RM = /bin/rm -f
REP_SRC = ./src
REP_SRC2 = ./modules/epiconf
REP_SRC3 = ./modules/logoepiwm
REP_BIN = ./bin
DEST_DIR = $(BIN_PREFIX)/bin
CONF_DIR = $(CONF_PREFIX)/epiwm
LOC = $(CONF_DIR)
FILE = ./config/*
SRC = $(REP_SRC)/*.c $(REP_SRC)/*.h
TAGS = etags $(SRC)
VERSION = 0.5
RELEASE = 5
TAR = tar cvf
BZIP = bzip2 -9
GZIP = gzip -9c
COMP = gzip -9v
UNCOMP = gzip -df
STRIP = strip
OBJS = *.o
.SUFFIXES: .h.Z .c.Z .h.gz .c.gz .c.z .h.z
##############################
# Basic Compile Instructions #
##############################
all: wm logo
wm:
cd $(REP_SRC) ;\
$(MAKE) LOC="$(LOC)"
conf:
cd $(REP_SRC2) ;\
$(MAKE)
logo:
cd $(REP_SRC3) ;\
$(MAKE)
clean:
-$(RM) $(REP_BIN)/$(NAME) $(REP_BIN)/$(NAME2) $(REP_BIN)/$(NAME3) $(REP_SRC)/$(OBJS) $(REP_SRC2)/$(OBJS) $(REP_SRC3)/$(OBJS) $(REP_SRC)/*~ $(REP_SRC2)/*~ $(REP_SRC3)/*~
tar: clean tag_wm
cd .. ;\
$(RM) EPIwm-$(VERSION)-$(RELEASE).tar ;\
$(TAR) EPIwm-$(VERSION)-$(RELEASE).tar ./EPIwm-$(VERSION)-$(RELEASE)/
tgz: clean tag_wm
cd .. ;\
$(RM) EPIwm-$(VERSION)-$(RELEASE).tar.gz ;\
$(TAR) - ./EPIwm-$(VERSION)-$(RELEASE)/ | $(GZIP) > EPIwm-$(VERSION)-$(RELEASE).tar.gz ;\
chmod 644 EPIwm-$(VERSION)-$(RELEASE).tar.gz
bz: clean tag_wm
cd .. ;\
$(RM) EPIwm-$(VERSION)-$(RELEASE).tar.bz2 ;\
$(TAR) EPIwm-$(VERSION)-$(RELEASE).tar ./EPIwm-$(VERSION)-$(RELEASE);\
$(BZIP) EPIwm-$(VERSION)-$(RELEASE).tar;\
chmod 644 EPIwm-$(VERSION)-$(RELEASE).tar.bz2
.c.Z.c .h.Z.h .c.gz.c .h.gz.h .c.z.c .h.z.h :
-$(UNCOMP) $<
tag_wm:
$(RM) TAGS_WM ;\
cd $(REP_SRC) ;\
etags *.[ch] -o TAGS ;\
cp TAGS ../TAGS_WM
tag_conf:
$(RM) TAGS_CONF ;\
cd $(REP_SRC2) ;\
etags *.[ch] -o ../TAGS_CONF
.c.o:
$(CC) $(CFLAGS) -c $<
install: all
install -d -m 755 $(CONF_DIR)
install -m 644 $(FILE) $(CONF_DIR)
install -d -m 755 $(DEST_DIR)
install -m 755 $(REP_BIN)/* $(DEST_DIR)
################
# Dependencies #
################