head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.12 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.10 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.8 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.6 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.4 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.2 pkgsrc-2024Q4-base:1.1; locks; strict; comment @# @; 1.1 date 2024.12.08.15.09.54; author vins; state Exp; branches; next ; commitid aV3GGGcnM1uf4IAF; desc @@ 1.1 log @wm/emwm: few enhancements * Switch to a unified makefile, replacing per-platform makefiles. * Standardise build environment. * Install system-wide configuration at the right location. Revision bumped. @ text @$NetBSD: patch-Makefile,v 1.1 2024/12/08 13:09:43 vins Exp $ Prefer pkgsrc Makefile. --- Makefile.orig 2024-12-08 10:46:59.443489899 +0000 +++ Makefile @@@@ -2,7 +2,10 @@@@ all: @@if [ -e src/Makefile ]; then \ $(MAKE) -C src $(MAKEFLAGS); \ else \ - if [ -e mf/Makefile.$$(uname) ]; then \ + if [ -e mf/Makefile.pkgsrc ]; then \ + ln -s ../mf/Makefile.pkgsrc src/Makefile && \ + $(MAKE) -C src $(MAKEFLAGS); \ + elif [ -e mf/Makefile.$$(uname) ]; then \ ln -s ../mf/Makefile.$$(uname) src/Makefile && \ $(MAKE) -C src $(MAKEFLAGS); \ else \ @