File: makefile.m32in

package info (click to toggle)
slrn 1.0.3+dfsg-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 6,412 kB
  • sloc: ansic: 39,852; sh: 3,777; perl: 467; makefile: 229; sed: 24
file content (32 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (2)
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
# -*-sh-*-
MAKE = mingw32-make
SLSH = slsh
# Note: copy.exe does not exist on windows since it is a cmd.exe built-in
MFLAGS = COPY="cmd /c copy /y" RM="cmd /c del"

# DESTDIR is used for building a package for use on another machine.
DESTDIR =
PREFIX = @PREFIX@
CONFDIR = C:$(PREFIX)/etc
SLRNPULL_ROOT = @SLRNPULL_ROOT_DIR@
#
all: slrn slrnpull
slrn:
	cd src && $(MAKE) $(MFLAGS) slrn.exe
	@echo .
	@echo To install it, run $(MAKE) install.
	@echo .
#
slrnpull:
	cd src && $(MAKE) $(MFLAGS) slrnpull.exe
	@echo .
	@echo To install it, run $(MAKE) install.
	@echo .
#
clean:
	cd src && $(MAKE) $(MFLAGS) clean
#
install: all
	$(SLSH) win32/m32install.sl "--destdir=$(DESTDIR)" "--prefix=$(PREFIX)" "--slrnpull=$(SLRNPULL_ROOT)" install
#
.PHONY: all install clean slrn slrnpull