-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile: add fallback Makefile for BSD make
- Loading branch information
1 parent
479795d
commit e5d8d00
Showing
4 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# -*- mode: makefile-bsdmake -*- | ||
|
||
all: | ||
.PHONY: all install | ||
|
||
.warning [1;31mThis is not GNU make. Plaese use GNU make (gmake).[m | ||
.warning [1mTrying to redirect to gmake...[m | ||
|
||
.ifdef INSDIR | ||
assign_insdir := INSDIR="$(INSDIR)" | ||
.endif | ||
|
||
.ifdef INSDIR_DOC | ||
assign_insdir_doc := INSDIR_DOC="$(INSDIR_DOC)" | ||
.endif | ||
|
||
.ifdef PREFIX | ||
assign_prefix := PREFIX="$(PREFIX)" | ||
.endif | ||
|
||
.ifdef DESTDIR | ||
assign_destdir := DESTDIR="$(DESTDIR)" | ||
.endif | ||
|
||
all: | ||
gmake -f GNUmakefile all | ||
install: | ||
gmake -f GNUmakefile install $(assign_insdir) $(assign_insdir_doc) $(assign_prefix) $(assign_destdir) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters