File: Imakefile

package info (click to toggle)
xphoon 20000613%2B0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 604 kB
  • ctags: 301
  • sloc: ansic: 2,013; makefile: 7; sh: 1
file content (73 lines) | stat: -rw-r--r-- 2,163 bytes parent folder | download | duplicates (3)
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
# @(#) $Header: Imakefile,v 1.7 91/09/18 12:58:04 jef Exp $ (LBL)
#
# Copyright (C) 1988, 1991 by Jef Poskanzer and Craig Leres.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation.  This software is provided "as is" without express or
# implied warranty.


DEFINES =		$(CPPFLAGS)
INCLUDES =		-I. -I$(TOP) -I$(TOP)/X11 -I$(TOP)/X11/bitmaps
LOCAL_LIBRARIES =	$(XLIB)
DEPLIBS =		$(DEPXLIB)
LDOPTIONS =		$(LDFLAGS)
LDLIBS =		-lm

SRCS =			xphoon.c moon.c phase.c dtime.c
OBJS =			xphoon.o moon.o phase.o dtime.o

ComplexProgramTarget(xphoon)


# Make the export sharchive.
shar:		xphoon.shar1 xphoon.shar2 xphoon.shar3 xphoon.shar4

xphoon.shar1:	README Imakefile xphoon.man xphoon.c moon.c phase.c dtime.c tws.h vroot.h
	shar -v -c -p X README Imakefile xphoon.man xphoon.c moon.c phase.c dtime.c tws.h vroot.h  > xphoon.shar1

moon.xbm.Z:	moon.xbm
	compress -c moon.xbm > moon.xbm.Z

moon.xbm.Z.uu:	moon.xbm.Z
	uuencode moon.xbm.Z moon.xbm.Z > moon.xbm.Z.uu

moon.xbm.Z.uuaa: moon.xbm.Z.uu
	split -510 moon.xbm.Z.uu moon.xbm.Z.uu

xphoon.shar2:	moon.xbm.Z.uuaa
	shar -v -c -p X moon.xbm.Z.uuaa > xphoon.shar2

xphoon.shar3:	moon.xbm.Z.uuaa
	shar -v -c -p X moon.xbm.Z.uuab > xphoon.shar3

xphoon.shar4:	moon.xbm.Z.uuaa
	shar -v -c -p X moon.xbm.Z.uuac > xphoon.shar4

# Unpack the compressed, uuencoded, shared bitmaps.
unshar:
	cat moon.xbm.Z.uu?? > moon.xbm.Z.uu
	uudecode moon.xbm.Z.uu
	uncompress moon.xbm.Z


# Make the export tarchive.
tar:		xphoon.tar.gz

xphoon.tar.gz:	xphoon.tar
	rm -f xphoon.tar.gz
	gzip xphoon.tar

xphoon.tar:	README Imakefile xphoon.man xphoon.c moon.c phase.c dtime.c tws.h vroot.h moon.xbm
	tar chf xphoon.tar README Imakefile xphoon.man xphoon.c moon.c phase.c dtime.c tws.h vroot.h moon.xbm


# Extra clean target for shar and tar stuff.
clean::
	-rm -f moon.xbm.Z moon.xbm.Z.uu moon.xbm.Z.uu?? xphoon.shar? xphoon.tar.Z

distclean:: clean
	-rm -f *.c~ *.h~ *.man~ Makefile