File: Makefile

package info (click to toggle)
sudoku 1.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 344 kB
  • ctags: 373
  • sloc: ansic: 3,483; makefile: 49
file content (22 lines) | stat: -rwxr-xr-x 676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make
#
# This makefile and all associated files has been placed into
# the public domain by Michael Kennett (July 2005), and can be
# used freely by anybody for any purpose.

DESTDIR ?= /
PREFIX ?= /usr/local

sudoku: sudoku.c
	$(CC) -o sudoku $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) sudoku.c -lcurses

clean:
	rm -f sudoku

install: sudoku sudoku.6
	install -d $(DESTDIR)$(PREFIX)/games
	install -d $(DESTDIR)$(PREFIX)/share/sudoku
	install -d $(DESTDIR)$(PREFIX)/share/man/man6
	install -m 755 sudoku $(DESTDIR)$(PREFIX)/games/sudoku
	install -m 644 template $(DESTDIR)$(PREFIX)/share/sudoku/template
	install -m 644 sudoku.6 $(DESTDIR)$(PREFIX)/share/man/man6/sudoku.6